<template>
	<div class="extension">
		<sectionTitle>腾讯云优惠</sectionTitle>
		<el-carousel indicator-position="outside" :interval="5000">
			<el-carousel-item v-for="item in extensions">
				<a target="_blank" :href="item.link" :title="item.title">
					<img :src="require('../../assets/img/extension/'+item.image)" class="image" alt="加载失败">
				</a>
			</el-carousel-item>
		</el-carousel>
	</div>
</template>

<script>
	import sectionTitle from '@/components/section-title'
	export default {
		name: "Advertisement",
		data() {
			return {
				extensions: [{
					link: "https://curl.qcloud.com/oOzG06vJ",
					title: "【腾讯云】云产品限时秒杀，爆款1核2G云服务器，首年99元https://cloud.tencent.com/act/cps/redirect?redirect=1077&cps_key=fe0c4a3ead8eb2b0fd87a2365f8ee833&from=console",
					image: "2.jpg"
				}, {
					link: "https://curl.qcloud.com/nYJg5LWO",
					title: "【腾讯云】星星海SA2云服务器，1核2G首年99元起，高性价比首选https://cloud.tencent.com/act/cps/redirect?redirect=1063&cps_key=fe0c4a3ead8eb2b0fd87a2365f8ee833&from=console",
					image: "3.jpg"
				}, {
					link: "https://curl.qcloud.com/pkm0Lekj",
					title: "【腾讯云】推广者专属福利，新客户无门槛领取总价值高达2860元代金券，每种代金券限量500张，先到先得。https://cloud.tencent.com/act/cps/redirect?redirect=1040&cps_key=fe0c4a3ead8eb2b0fd87a2365f8ee833&from=console",
					image: "4.jpg"
				}]
			}
		},
		components: {
			sectionTitle
		}
		}
</script>

<style scoped="scoped" lang="less">
	.extension {
		background-color: #FFFFFF;
		margin-top: 20px;
		padding: 20px;
	
		.image {
			width: 100%;
		}
	}
</style>
